import request from './request.js';



//授权
export function login(data) {
  return request({
    url: '/system/WeChatPublicApi/login',
    method: 'post',
   data
  })
}

//登录获取token
export function denglu(data) {
  return request({
    url: '/system/MiniProgram/login',
    method: 'post',
	data
   
  })
  }


//商品列表
export function availableProducts(data) {
  return request({
    url: '/system/WeChatPublicApi/availableProducts',
    method: 'post',
	data
  })
}
//获取行业
export function industryTypes() {
  return request({
    url: '/system/WeChatPublicApi/industryTypes',
    method: 'get',
  })
}

//点击购买按钮
export function TackProduct(data) {
  return request({
    url: '/system/WeChatPublicApi/TackProduct',
    method: 'post',
	data
  })
}


//点击购买生成二维码
export function getSysConfigByTypeByS(data) {
  return request({
    url: '/system/WeChatPublicApi/getSysConfigByTypeByS?type='+data.type,
    method: 'get'
	
  })
}

//入驻商户
export function RZSHMemberSubmit(data) {
  return request({
    url: '/system/WeChatPublicApi/RZSHMemberSubmit',
    method: 'post',
	data

	
  })
}


//申请推广
export function getSysConfigByType(data) {
  return request({
    url: '/system/WeChatPublicApi/getSysConfigByType?config_key='+data,
    method: 'get',
  })
}


//提交推广
export function CwMemberTSubmit(data) {
  return request({
    url: '/system/WeChatPublicApi/CwMemberTSubmit',
    method: 'post',
	data
  })
}


//提交订单
export function createOrder(data) {
  return request({
    url: '/system/WeChatPublicApi/createOrder',
    method: 'post',
	data
	
  })
}

//购买记录
export function myOrders(data) {
  return request({
    url: '/system/WeChatPublicApi/myOrders',
    method: 'post',
	data

	
  })
}

//售出记录执行操作，通过或者拒绝
export function auditOrder(data) {
  return request({
    url: '/system/WeChatPublicApi/auditOrder',
    method: 'post',
	data

	
  })
}

//个人中心
export function getMemberById() {
  return request({
    url: '/system/WeChatPublicApi/getMemberById',
    method: 'get'

	
  })
}

//更新会员信息
export function updateMemberById(data) {
  return request({
    url: '/system/WeChatPublicApi/updateMemberById',
    method: 'post',
	data

	
  })
}

//积分记录
export function myFinancialRecords(data) {
  return request({
    url: '/system/WeChatPublicApi/myFinancialRecords',
    method: 'post',
	data

	
  })
}




//获取下级
export function myDownlineCommission() {
  return request({
    url: '/system/WeChatPublicApi/myDownlineCommission',
    method: 'get'

	
  })
}

//个人中心数据概况
export function GetdataStatistics(data) {
  return request({
    url: '/system/WeChatPublicApi/GetdataStatistics',
    method: 'post',
	data

	
  })
}


//查询可退费月份
export function getRefundableMonths() {
  return request({
    url: '/system/WeChatPublicApi/getRefundableMonths',
    method: 'get'


	
  })
}

//提交退费
export function applyRefund(data) {
  return request({
    url: '/system/WeChatPublicApi/applyRefund',
    method: 'post',
   data

	
  })
}

//押金充值
export function applyRechargeDeposit(data) {
  return request({
    url: '/system/WeChatPublicApi/applyRechargeDeposit',
    method: 'post',
   data

	
  })
}


//提现
export function applyWithdraw(data) {
  return request({
    url: '/system/WeChatPublicApi/applyWithdraw',
    method: 'post',
   data

	
  })
}

//购买平台商品
export function createSalesOrder(data) {
  return request({
    url: '/system/WeChatPublicApi/createSalesOrder',
    method: 'post',
   data

	
  })
}


//会员续费
export function CZMemberFree(data) {
  return request({
    url: '/system/WeChatPublicApi/CZMemberFree',
    method: 'post',
   data

	
  })
}


//我的商品列表
export function GetproductList(data) {
  return request({
    url: '/system/WeChatPublicApi/GetproductList',
    method: 'post',
   data
  })
}



//获取二维码
export function DaizhifuByOrder(data) {
  return request({
    url: '/system/WeChatPublicApi/DaizhifuByOrder',
    method: 'post',
   data
  })
}

























